addToBackStack

Add this transaction to the back stack. This means that the transaction will be remembered after it is committed, and will reverse its operation when later popped off the stack.

setReorderingAllowed must be set to true in the same transaction as addToBackStack() to allow the pop of that transaction to be reordered.

Parameters

name

An optional name for this back stack state, or null.